package com.example.Sao.Tools;

import android.util.Log;

/*
 *日志管理
 */
public class LogUtil {
    private static final  int VERBOSE=1;
    private static final int DEBUG=2;
    private static final int INFO=3;
    private static final int WARN=4;
    private static final int ERROR=5;
    private static  final int NOTHING=6;
    private static int level=VERBOSE;
    public static void v(String TAG,String msg){
        if(level<=VERBOSE){
            Log.v(TAG,msg);
        }
    }
    public static void d(String TAG,String msg){
        if(level<=DEBUG){
            Log.d(TAG,msg);
        }
    } public static void i(String TAG,String msg){
        if(level<=INFO){
            Log.i(TAG,msg);
        }
    }
    public static void w(String TAG,String msg){
        if(level<=WARN){
            Log.w(TAG,msg);
        }
    }
    public static void e(String TAG,String msg){
        if(level<=ERROR){
            Log.e(TAG,msg);
        }
    }
}
